package com.fast.alden.admin.web.controller.monitor;


import com.fast.alden.admin.entity.vo.Server;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.net.UnknownHostException;

@RestController
@RequestMapping("/server")
public class ServerController {
    @GetMapping
    public Server retrieve() throws UnknownHostException {
        Server server = new Server();
        server.copyTo();
        return server;
    }
}
